package it.unisa.ingegneria.tdp.esercitazione3;

public class ClientRBTree {

	/**
	 * @param args
	 * @throws EmptyTreeException 
	 * @throws InvalidPositionException 
	 */
	public static void main(String[] args) throws InvalidPositionException, EmptyTreeException {
		RBTree<Integer, String> tree = new RBTree<Integer, String>();
		try {	
			tree.insert(1, "info1");
			tree.insert(100, "info100");
			tree.insert(50, "info50");
			tree.insert(2, "info2");
			tree.insert(3, "info3");
			tree.insert(90, "info90");
			tree.insert(101, "info101");
			

		} catch (InvalidKeyException e) {
			System.out.println(e.toString());
		}
		tree.print();
	}
	
	
	
}
